package orm;

import org.apache.ibatis.annotations.Param;

public interface WordMapper {
    void insert(Word word);

    Word[] search(@Param("key") String key, @Param("onlyFavorite") boolean onlyFavorite, @Param("userId") Integer userId);

    void update(Word word);

    void setFavorite(Word word);

    void delete(Integer id);
}
